You are here: Symbol Reference > Dew Namespace > Dew.Math Namespace > Classes > TMtxVec Class > TMtxVec Methods > ThresholdGT_LT Method > TMtxVec.ThresholdGT_LT Method ([In] double, [In] double, [In] double, [In] double)
Dew Math for .NET
ContentsIndexHome
PreviousUpNext
TMtxVec.ThresholdGT_LT Method ([In] double, [In] double, [In] double, [In] double)

Threshold greater than and less than operation.

Syntax
C#
Visual Basic
public TMtxVec ThresholdGT_LT([In] double GTLevel, [In] double GTValue, [In] double LTLevel, [In] double LTValue);

Perform operation on all calling object values. The LTValue parameter is an lower bound for threshold operation. The GTValue parameter is an upper bound for threshold operation. All values less than LTLevel will be replaced with LTValue. All values bigger than GTLevel will be replaced with GTValue. Operation is available only for not Complex values.

using Dew.Math; using Dew.Math.Units; namespace Dew.Examples() { void Example() { TVec a; MtxVec.CreateIt(out a); try { a.SetIt(false, new double[] {2, 0.1, 3, 4}); a.ThresholdGT_LT(2.3,3.4,1,0.5); // a = [2,0.5,3.4,3.4] } finally { MtxVec.FreeIt(ref a); } } }
Copyright (c) 1999-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!